<div ng-if="pagedata.op=='get'" class="fui-page fui-page-current">
    <div class='fui-content' >
        <div class='fui-cell-group fui-cell-group-o'>
            <div class='fui-cell-title'>
                <div class='fui-cell-info' style='color:#999'>当前可转换{{pagedata.pluginset.db_title}}: ￥
					<span id='current'>{{pagedata.item.baofee}}</span>
					<a id='btn-all' class='text-primary external' href='#' ng-click="pagedata.post.fee=pagedata.item.baofee;pagedata.refresh()">全部转换</a>
				</div>
            </div>
			<div class='fui-cell-title'>转换金额
                <small ng-if="pagedata.setting.min>0">转换额度最小为: <span class='text-danger'>￥1.00</span></small>
            </div>
            <div class='fui-cell'>
                <div class='fui-cell-label big' style='width:auto;'>￥</div>
                <div class='fui-cell-info'><input type='text' class='fui-input' placeholder="0.00" style='font-size:1.2rem;' ng-model="pagedata.post.fee" ng-change="pagedata.refresh()"></div>
            </div>
			<div class='fui-cell-title charge-group disabled' style="padding-top:0">本次转换实际到账积分<text class='text-danger'> {{pagedata.item.jian_tofee || '0.00'}}</text> 个
			</div>
			<div class='fui-cell-title charge-group disabled' style="padding-top:0">本次转换实际到账{{pagedata.fee5title}} <text class='text-danger'> {{pagedata.item.jian_tobi || '0.00'}}</text> 个
			</div>
        <a id='btn-next' class='btn btn-success block ' ng-click="post(pagedata.post,'post')">转换</a>
    </div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.pagedata.refresh=function(){
	scope.pagedata.pluginset.balance_per=scope.pagedata.pluginset.balance_per?scope.pagedata.pluginset.balance_per:5;
	scope.pagedata.pluginset.jian_tobi=scope.pagedata.pluginset.jian_tobi?scope.pagedata.pluginset.jian_tobi:50;
	scope.pagedata.item.jian_tobi=(scope.pagedata.post.fee*scope.pagedata.pluginset.jian_tobi/100).toFixed(2);
	scope.pagedata.pluginset.jian_tofee=scope.pagedata.pluginset.jian_tofee?scope.pagedata.pluginset.jian_tofee:50;
	scope.pagedata.item.jian_tofee=(scope.pagedata.post.fee*scope.pagedata.pluginset.jian_tofee/100).toFixed(2);
	scope.pagedata.item.service_money=(scope.pagedata.post.fee*scope.pagedata.pluginset.balance_per/100).toFixed(2);
	scope.pagedata.item.cash_money=(scope.pagedata.post.fee-scope.pagedata.item.service_money).toFixed(2);
}
</script>